
 
 F u n c t i o n :   r e m o v e A t t r i b u t e ( d o m E l e m e n t O r N o d e A r r a y O r C S S S e l e c t o r ,   s t r i n g A t t r i b u t e N a m e O r A r r a y ) 
 
 
 
 S h o r t h a n d :   r e m A t t r ( d o m E l e m e n t O r N o d e A r r a y O r C S S S e l e c t o r ,   s t r i n g A t t r i b u t e N a m e O r A r r a y ) 
 
 
 
 D e s c r i p t i o n :   R e m o v e s   t h e   s p e c i f i e d   a t t r i b u t e s   f o r   a   D O M   e l e m e n t ,   m a r k u p   s t r i n g ,   o r   C S S   s e l e c t o r   r e f e r e n c e d   e l e m e n t . 
 
 
 
 R e t u r n s :   d o m E l e m e n t   o r   m a t c h i n g   n o d e   a r r a y ,   o r   $ A   o b j e c t   i f   c h a i n e d . 
 
 
 
 E x a m p l e : 
 
 
 
 / /   R e m o v e   a n   a t t r i b u t e   f r o m   a   D O M   e l e m e n t 
 
 v a r   m y E l e m e n t   =   $ A . r e m o v e A t t r i b u t e ( d o m E l e m e n t ,   " t a b i n d e x " ) ; 
 
 
 
 / /   R e m o v e   m u l t i p l e   a t t r i b u t e s   f r o m   a n   a r r a y   o f   D O M   e l e m e n t s 
 
 v a r   m y E l e m e n t s A r r a y   =   $ A . r e m o v e A t t r i b u t e ( [ d o m E l e m e n t 1 ,   d o m E l e m e n t 2 ] ,   [ 
 
     " t a b i n d e x " , 
 
     " a r i a - d i s a b l e d " 
 
 ] ) ; 
 
 
 
 / /   R e m o v e   m u l t i p l e   a t t r i b u t e s   f r o m   m u l t i p l e   D O M   e l e m e n t s   r e f e r e n c e d   b y   a   C S S   s e l e c t o r 
 
 v a r   m y E l e m e n t s A r r a y   =   $ A . r e m o v e A t t r i b u t e ( ' # m y L i s t b o x [ r o l e = " l i s t b o x " ]   * [ r o l e = " o p t i o n " ] [ t a b i n d e x ] ' ,   [ 
 
     " a r i a - s e l e c t e d " , 
 
     " t a b i n d e x " 
 
 ] ) ; 
 
 
 
 / /   O r   t h e   s a m e   u s i n g   c h a i n i n g 
 
 
 
 / /   R e m o v e   a n   a t t r i b u t e   f r o m   a   D O M   e l e m e n t 
 
 v a r   m y C h a i n   =   $ A ( d o m E l e m e n t ) . r e m o v e A t t r i b u t e ( " t a b i n d e x " ) ; 
 
 
 
 / /   R e m o v e   m u l t i p l e   a t t r i b u t e s   f r o m   a n   a r r a y   o f   D O M   e l e m e n t s 
 
 v a r   m y C h a i n   =   $ A ( [ d o m E l e m e n t 1 ,   d o m E l e m e n t 2 ] ) . r e m o v e A t t r i b u t e ( [ 
 
     " t a b i n d e x " , 
 
     " a r i a - d i s a b l e d " 
 
 ] ) ; 
 
 
 
 / /   R e m o v e   m u l t i p l e   a t t r i b u t e s   f r o m   m u l t i p l e   D O M   e l e m e n t s   r e f e r e n c e d   b y   a   C S S   s e l e c t o r 
 
 v a r   m y C h a i n   =   $ A ( ' # m y L i s t b o x [ r o l e = " l i s t b o x " ]   * [ r o l e = " o p t i o n " ] [ t a b i n d e x ] ' ) . r e m o v e A t t r i b u t e ( [ 
 
     " a r i a - s e l e c t e d " , 
 
     " t a b i n d e x " 
 
 ] ) ; 
 
 
 
 / /   T o   r e t u r n   t h e   m o d i f i e d   e l e m e n t   w i t h i n   a   c h a i n ,   u s e   t h e   " r e t u r n ( ) "   m e t h o d . 
 
 
 
 v a r   m y E l e m e n t   =   m y C h a i n . r e t u r n ( ) ; 
 
 